GtkRange: Set orientable style classes initially
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:39:32 +0000 (19:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:39:32 +0000 (19:39 -0400)
This was an omission, horizontal/vertical would only be set
when the orientation is changed.

gtk/gtkrange.c

index 84e79fa0bff1e81a8b021a380833240c06099827..c65f58fecd59877515103d9a6a996aad17b31458 100644 (file)
@@ -754,6 +754,8 @@ gtk_range_init (GtkRange *range)
   priv->fill_level = G_MAXDOUBLE;
   priv->timer = NULL;
 
+  _gtk_orientable_set_style_classes (GTK_ORIENTABLE (range));
+
   priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (range));
   gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (priv->multipress_gesture),
                                      FALSE);